//
//  AppDelegate.h
//  Shangshu
//
//  Created by MingmingSun on 2017/10/12.
//  Copyright © 2017年 Sunmingming. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YJBookItem.h"
#import "AFSoundManager.h"
#import <Masonry.h>

#define SettingLevel @"level"

#define kDeviceWidth [UIScreen mainScreen].bounds.size.width
#define KDeviceHeight [UIScreen mainScreen].bounds.size.height

#define MyDrawerDefaultWidth (kDeviceWidth * 7/8)
#define TitleColor [UIColor brownColor]
//全局变量
#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self;
#define APPALL ((AppDelegate*)[[UIApplication sharedApplication] delegate])

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
//全局数据库指针
@property(nonatomic,assign) int nowLevel;

@property(nonatomic,strong) AFSoundManager *globalSoundManager;

@property(nonatomic,strong) YJBookItem *globalItem;
@property(nonatomic,strong) NSArray *mainBookArray;

-(void)startWithDrawerIndex:(int)aIndex;


@end
